export default {
    state: () => ({
        bannersModule: [],
        recomandsModule: []
    }),
    mutations: {
        changeBannersModule(state, banner) {
            state.bannersModule = banner
        },
        changeRecommendsModule(state, recomand) {
            state.recomandsModule = recomand
        }
    },
    actions: {
        async fetchHomeMultiondataActionawaitMudule(context) {
            const res = await fetch("http://123.207.32.32:8000/home/multidata")
            const data = await res.json()
            console.log(data)
            context.commit("changeBannersModule", data.data.banner.list)
            context.commit("changeRecommendsModule", data.data.recommend.list)
        }
    }
}